package com.itheima.reggie.service;

import com.itheima.reggie.config.R;
import com.itheima.reggie.entity.Employee;
import com.itheima.reggie.entity.Page;

import java.util.List;

public interface EmployeeService {
//    登录
    R <Employee> login(Employee employee);
//添加员工
    void addEmp(Employee employee);

//分页
    Page<Employee> empByPage(Integer page, Integer pagesize, String name);
//修改员工
    void upDate(Employee employee);


    Employee findById(Long id);
}
